<template>
    <div>
        {{msg}}
      <button @click="addOne">add one</button>
      <button @click="minusOne">minus one</button>
    </div>
</template>
<script>

    export default {
        data() {
            return {
                msg: 'i am banana',
              price:5
            }
        },
      methods:{
        getParam (){
          console.log(this.$route.params)
        },
        addOne(){
          this.$store.dispatch('increment1',this.price)
        },
        minusOne(){
          this.$store.commit('decrement',this.price)
        }
      }
    }
</script>
